import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import rootApp from './rootApp'


const render = Component => {
    ReactDOM.render(
        <AppContainer>
            <Component />
        </AppContainer>,
        document.getElementById('root')
    )
}

render(rootApp)

if (module.hot) {
  module.hot.accept('./rootApp', () => {
      render(rootApp)
  })
}
